C=gcc
CFLAGS=-I.
FILETESTDEPS = blockFreeList.h disk.h mallocCheck.h tokenize.h filesystem.h directory.h inode.h
FILETESTOBJ = blockFreeList.c disk.c mallocCheck.c tokenize.c filesystem.c directory.c inode.c filetest.c

FTESTDEPS = filesystem.h directory.h inode.h server.h client.h
FTESTOBJ =  filesystem.c directory.c inode.c filetest.c server.c client.c

%.o: %.c $(FTESTDEPS)
	$(CC) -ggdb -Wall -c -o $@ $< $(CFLAGS)

kapish: $(OBJ)
	gcc -o $@ $^ $(CFLAGS)

ftest: $(FTESTDEPS) $(FTESTOBJ)
	gcc -ggdb -o $@ $^ $(CFLAGS)

filetest: $(FILETESTDEPS) $(FILETESTOBJ)
	gcc -Wall -ggdb -o $@ $^ $(CFLAGS)
